PAGES = dict({'home':1,
            'bar':2,
            'profile':3})

ACTIONS = dict({'route':1,
               'swipe':2,
               'login':3,
               'logout':4,
               
               })


DEALSSTATUS = dict({'1':'Bought',
                    '2':'Used',
                    '3':'Validate'
                    })

TRANSACTION = dict({'1':'Open',
                    '2':'End'})


def keyFromValue(Dictionnary, v):
  return [key for key, value in Dictionnary.iteritems() if value == v][0]


customBackendPwd = 'sha1$4e987$afbcfcwepjd23d023-j29dh239hd321e9fc33051de'